package org.grayrabbit.cms.properties;

import java.util.Collection;



/**
 * @author sys53
 * @version 1.0
 * @created 06-一月-2012 16:51:46
 */
public interface ApplicationProperties {

	/**
	 * 
	 * @param key
	 */
	public boolean exists(String key);

	/**
	 * 
	 * @param key
	 */
	public String getDefaultString(String key);

	public String getEncoding();

	/**
	 * 
	 * @param name
	 */
	public String getString(String name);

	/**
	 * 
	 * @param name
	 */
	public String getText(String name);
	/**
	 * 
	 * @param name
	 * @return
	 */
	public String getDefaultBackedText(String name);

	/**
	 * 
	 * @param name
	 * @param value
	 */
	public void setString(String name, String vaule);

	/**
	 * 
	 * @param name
	 * @param value
	 */
	public void setText(String name, String value);

	public Collection<String> getStringsWithPrefix(String preFix);

}